package com.t309.tzy.entity;
import java.util.Date;
/**
 *  用户实体类
 */
public class TSysUser {
  public TSysUser() {}

  @Override
  public String toString() {
    return "真实姓名realName:"+getRealName()+",account:"+getAccount()+",phone:"+getPhone();
  }

  public TSysUser(String account, String realName, String password, int sex, Date birthday,
                  String phone, String address, int roleId, TSysRole sysRole, long createdUserId,
                  Date createdTime, long updatedUserId, Date updatedTime) {
    this.account = account;
    this.realName = realName;
    this.password = password;
    this.sex = sex;
    this.birthday = birthday;
    this.phone = phone;
    this.address = address;
    this.roleId = roleId;
    this.sysRole = sysRole;
    this.createdUserId = createdUserId;
    this.createdTime = createdTime;
    this.updatedUserId = updatedUserId;
    this.updatedTime = updatedTime;
  }

  public TSysUser( String account, String realName, String password, int sex, Date birthday,
                  String phone, String address, int roleId) {
    this.account = account;
    this.realName = realName;
    this.password = password;
    this.sex = sex;
    this.birthday = birthday;
    this.phone = phone;
    this.address = address;
    this.roleId = roleId;
  }

  public TSysUser(String realName, int roleId) {
    this.realName = realName;
    this.roleId = roleId;
  }

  private int id;
  private String account;
  private String realName;
  private String password;
  private int sex;
  private Date birthday;
  private String phone;
  private String address;
  private int roleId;
  private String roleName;    //用户角色名称
  private TSysRole sysRole;//系统角色实体类
  private long createdUserId;
  private Date createdTime;
  private long updatedUserId;
  private Date updatedTime;

  public TSysRole getSysRole() {
    return sysRole;
  }
  public void setSysRole(TSysRole sysRole) {
    this.sysRole = sysRole;
  }
  public int getId() {
    return id;
  }
  public void setId(int id) {
    this.id = id;
  }
  public String getAccount() {
    return account;
  }
  public void setAccount(String account) {
    this.account = account;
  }
  public String getRealName() {
    return realName;
  }
  public void setRealName(String realName) {
    this.realName = realName;
  }
  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public int getSex() {
    return sex;
  }

  public void setSex(int sex) {
    this.sex = sex;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public int getRoleId() {
    return roleId;
  }

  public void setRoleId(int roleId) {
    this.roleId = roleId;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public long getCreatedUserId() {
    return createdUserId;
  }

  public void setCreatedUserId(long createdUserId) {
    this.createdUserId = createdUserId;
  }

  public long getUpdatedUserId() {
    return updatedUserId;
  }

  public void setUpdatedUserId(long updatedUserId) {
    this.updatedUserId = updatedUserId;
  }

  public Date getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(Date createdTime) {
    this.createdTime = createdTime;
  }

  public Date getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(Date updatedTime) {
    this.updatedTime = updatedTime;
  }
}